package com.studentManagement.service;

import com.studentManagement.po.Student;
import com.studentManagement.po.Student_Leader;
import com.studentManagement.po.Student_simple;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by Administrator on 2017/5/1 0001.
 */
public interface ClassService {
    // (查询begin-end]之前学生表信息（class_id)老师
    public List<Student_simple> forRightClassServlet_getStudentList(String class_id, int begin, int end);

    //得到分页页数（class_id，每页个数）
    public int getPagingNum_class_id(String class_id, int num);

    //得到分页页数（关键字,每页个数）
    public int getPagingNum_keywords(String keywords, int num);

    //班级添加学生
    public void addStudent(Student student) throws SQLException;

    //得到宿舍列表(class_id)
    public List<String> getDormitory_id(String class_id);

    //判断学号能否使用
    public boolean student_idCanUsed(String student_id);

    //获取班委列表
    public List<Student_Leader> getStudent_leader(String class_id);

    //删除学生（student_id)
    public boolean delStudent(String student_id);

    //得到学生的详细信息（student_id)
    public Student getStudentDeTail(String student_id);

    //更新学生信息（student_id)
    public void updateStudentDetail(Student student);

    //得到学生头像路径（student_id)
    public String getStudentImg(String student_id);

    //得到所有班级列表
    public List<String> getClassList();
}
